<layout name='Layout/layout_page' />
    <ol class="breadcrumb">
        <li><a href="<{:U('Db/index')}>"><{:L('_menu_db')}></a></li>
        <li class="active">Backup and restore</li>
    </ol>



  <TABLE class="table table-striped table-bordered table-hover">
    <THEAD>
    <tr>
      <TH>File name</TH>
      <TH>Time</TH>
      <TH>Size</TH>  
      <TH>Action</TH>
    </tr>
    </THEAD>
    <TBODY>             
      <volist name="list" id="vo">
      <tr>
        <td><{$vo.name}></td>
        <td><{$vo.createTime}></td>
        <td><{$vo.size}></td>
        <td>
        <a href="<{:U('Db/down' , array('File'=>$vo['name']))}>" class="btn btn-default btn-sm" target="_blank"><i class="icon-download"></i> Download</a>
        <a href="<{:U('Db/restore' , array('File'=>$vo['name']))}>" class="btn btn-default btn-sm" onClick="return confirm('Are you sure you restore the database to the current backup?');"><i class="icon-repeat"></i> Restore</a>
        <!--a href="<{:U('Db/del' , array('File'=>$vo['name']))}>" class="btn btn-default btn-sm" onClick="return confirm('Are you sure you want to delete the backup file?');"><i class="icon-trash"></i> <{:L('_public_del')}></a-->
        </td>
      </tr>
      </volist>
    </TBODY>    
  </table>

  <p>
    <a href="<{:U('Db/backup')}>" class="btn btn-info"><i class="icon-tasks icon-white"></i> Backup database</a>
  </p>

  <p>Note:<br/>1、This operation only on the database in the current web site data (table prefix for the "<{:C('DB_PREFIX')}>" table) for backup. If you have more than one site in the database, the other site is not affected.<br />2、The data after the backup can be restored or imported through phpMyAdmin.</p>


<input type="hidden" id="menu_action" value="db" />